package com.ikun.hosscheduling.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ikun.common.entity.Scheduling;

import java.time.LocalDate;
import java.util.List;

public interface SchedulingService extends IService<Scheduling> {


    /**
     * 增加余号数
     *
     * @param docId
     * @param timeId
     * @return
     */
    Scheduling addSurplus(String date, Integer docId, Integer timeId);


    /**
     * 减少余号数
     *
     * @param docId
     * @param timeId
     * @return
     */
    Scheduling reduceSurplus(String date, Integer docId, Integer timeId);

    List<Scheduling> getScheduleByDate(LocalDate data);

    List<Scheduling> getScheduleByDocker(Long dockerId, LocalDate date, Long positionId);
}
